/**
 * 
 */
package hu.cubussapiens.client.core.login;

/**
 * @author balage
 *
 */
public class LoginException extends Exception {

	final int code;
	
	public int getCode() {
		return code;
	}
	
	/**
	 * 
	 */
	private static final long serialVersionUID = 7478197289120366170L;

	/**
	 * 
	 */
	public LoginException(int code) {
		this.code = code;
	}

	/**
	 * @param message
	 */
	public LoginException(String message, int code) {
		super(message);
		this.code = code;
	}

	/**
	 * @param cause
	 */
	public LoginException(Throwable cause, int code) {
		super(cause);
		this.code = code;
	}

	/**
	 * @param message
	 * @param cause
	 */
	public LoginException(String message, Throwable cause, int code) {
		super(message, cause);
		this.code = code;
	}

}
